package com.genius.mobile_page.huodong_jiancha_jd.controller;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;
import com.genius.mobile_page.common.ResponseData;
import com.genius.mobile_page.huodong_jiancha_jd.service.Huodong_jiancha_jdService;
import com.genius.workflow.log.ControllerLog;



@Controller
public class Huodong_jiancha_jdController {
	
	private Logger log = LoggerFactory.getLogger(Huodong_jiancha_jdController.class);
	@Autowired
    @Qualifier("huodong_jiancha_jdService")
//	@Resource(name="PandianService")
	private Huodong_jiancha_jdService huodong_jiancha_jdService;
	
    @ControllerLog(description="跳转到活动执行检查门店")
    @RequestMapping("/mobile_page/huodong_jiancha_jd/toShop")
    public String toShop(){
        return "/views/mobile_page/huodong_jiancha_jd/shop";
    }
    @ControllerLog(description="跳转到活动执行检查条款")
    @RequestMapping("/mobile_page/huodong_jiancha_jd/toHuodong_jiancha_jd_item")
    public String toShop_daodian(){
        return "/views/mobile_page/huodong_jiancha_jd/huodong_jiancha_jd_item";
    }
    @ControllerLog(description="跳转到活动执行检查门店结果")
    @RequestMapping("/mobile_page/huodong_jiancha_jd/toJiancha_jieguo")
    public String toJiancha_jieguo(){
        return "/views/mobile_page/huodong_jiancha_jd/jiancha_jieguo";
    }
    @ControllerLog(description="跳转到活动执行检查门店详情")
    @RequestMapping("/mobile_page/huodong_jiancha_jd/toJiancha_jieguo_item")
    public String toJiancha_jieguo_item(){
        return "/views/mobile_page/huodong_jiancha_jd/jiancha_jieguo_item";
    }
    @ControllerLog(description="查询检查门店位置信息")
   	@PostMapping("/mobile_page/huodong_jiancha_jd/getShopWeizhi")
       @ResponseBody
       public ResponseData getShopWeizhi(@RequestBody JSONObject parms){
   		log.info("查询检查门店位置信息请求--->"+parms);
   		ResponseData resData = huodong_jiancha_jdService.getShopWeizhi(parms);
   		log.info("查询检查门店位置信息返回值--->"+resData);
           return resData;
   	}
    
    @ControllerLog(description="插入检查门店")
   	@PostMapping("/mobile_page/huodong_jiancha_jd/insertHuodong_jiancha_jd_every")
       @ResponseBody
       public ResponseData insertHuodong_jiancha_jd_every(@RequestBody JSONObject parms){
   		log.info("插入检查门店请求--->"+parms);
   		ResponseData resData = huodong_jiancha_jdService.insertHuodong_jiancha_jd_every(parms);
   		log.info("插入检查门店返回值--->"+resData);
           return resData;
   	}
    
    @ControllerLog(description="查询检查条款")
   	@PostMapping("/mobile_page/huodong_jiancha_jd/getHuodong_jiancha_jd_item")
       @ResponseBody
       public ResponseData getHuodong_jiancha_jd_item(@RequestBody JSONObject parms){
   		log.info("查询检查条款请求--->"+parms);
   		ResponseData resData = huodong_jiancha_jdService.getHuodong_jiancha_jd_item(parms);
   		log.info("查询检查条款返回值--->"+resData);
           return resData;
   	}
    
    @ControllerLog(description="更新编辑到店检查门店条款")
   	@PostMapping("/mobile_page/huodong_jiancha_jd/replaceHuodong_jiancha_jd_every_item")
       @ResponseBody
       public ResponseData replaceHuodong_jiancha_jd_every_item(@RequestBody JSONObject parms){
   		log.info("更新编辑到店检查门店条款请求--->"+parms);
   		ResponseData resData = huodong_jiancha_jdService.replaceHuodong_jiancha_jd_every_item(parms);
   		log.info("更新编辑到店检查门店条款返回值--->"+resData);
           return resData;
   	}
    
    @ControllerLog(description="查询检查门店")
   	@PostMapping("/mobile_page/huodong_jiancha_jd/getHuodong_jiancha_jd_every")
       @ResponseBody
       public ResponseData getHuodong_jiancha_jd_every(@RequestBody JSONObject parms){
   		log.info("查询检查门店请求--->"+parms);
   		ResponseData resData = huodong_jiancha_jdService.getHuodong_jiancha_jd_every(parms);
   		log.info("查询检查门店返回值--->"+resData);
           return resData;
   	}
    
    @ControllerLog(description="查询到店检查门店条款")
   	@PostMapping("/mobile_page/huodong_jiancha_jd/getHuodong_jiancha_jd_every_item")
       @ResponseBody
       public ResponseData getHuodong_jiancha_jd_every_item(@RequestBody JSONObject parms){
   		log.info("查询到店检查门店条款请求--->"+parms);
   		ResponseData resData = huodong_jiancha_jdService.getHuodong_jiancha_jd_every_item(parms);
   		log.info("查询到店检查门店条款返回值--->"+resData);
           return resData;
   	}
}

